package com.deyuanyun.pic.ctrl.enumeration;

/**
 * @Description 腐蚀控制干扰源位置枚举
 * @author Jerry
 * @date 2017-01-17
 */
public enum  InfluencePositionEnum {

    ACROSS("交叉"),
    PARALLEL("平行");

    private String label;

    InfluencePositionEnum(String label){
        this.label = label;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public static String getLabel(String code){
        InfluencePositionEnum[] positionRelationEnums = InfluencePositionEnum.values();
        for (int i = 0; i < positionRelationEnums.length; i++) {
            if (positionRelationEnums[i].toString().equals(code)) {
                return positionRelationEnums[i].getLabel();
            }
        }
        return null;
    }
}
